SET ( CMAKE_SYSTEM_NAME       Linux )
SET ( CMAKE_C_COMPILER        "/usr/bin/arm-linux-gnueabihf-gcc" )
SET ( CMAKE_CXX_COMPILER      "/usr/bin/arm-linux-gnueabihf-g++" )
SET ( STRIP                   "/usr/bin/arm-linux-gnueabihf-strip")

SET ( ARCH                    "arm"         CACHE STRING "")
SET ( BUILD_BOARD             "BeagleBone"  CACHE STRING "")

SET ( CMAKE_CXX_FLAGS         "-std=c++11 -O2 -Wall -fopenmp -ldl -lpthread -lrt -Wno-deprecated-declarations -rdynamic -march=armv7-a -mfloat-abi=hard -mfpu=neon-vfpv4 ${CMAKE_CXX_FLAGS}" CACHE STRING "c++ flags")
SET ( CMAKE_C_FLAGS           "-std=c99 ${CMAKE_C_FLAGS}" CACHE STRING "c flags" )

SET( CMAKE_CXX_FLAGS_DEBUG    "-g ${CMAKE_CXX_FLAGS_DEBUG}" CACHE STRING "")

SET ( PLAT "arm-linux-gnueabihf" )

add_definitions(-D__ARM_NEON -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE)
